import { Injectable } from '@angular/core';
import { _HttpClient } from '@delon/theme';

@Injectable({
  providedIn: 'root'
})
export class TransportService {

	transportUrl = 'tjpn4-handle-tally/transport/';
	api = {
		shipList: this.transportUrl + 'shipList',
		billList: this.transportUrl + 'billList',
		corpTeamList: this.transportUrl + 'getCorpTeam',
		packageTypeList: this.transportUrl + 'packageTypeList',
		cargoTypeList: this.transportUrl + 'cargoTypeList',
		clientCodeList: this.transportUrl + 'clientCodeList',
	};
	constructor(private http: _HttpClient) {
	}

	transportShipList(params: any) : any {
		return this.http.get(this.api.shipList, params);
	}

	transportBillList(params: any) : any {
		return this.http.get(this.api.billList, params);
	}

	transportCorpTeamList(params: any) : any {
		return this.http.get(this.api.corpTeamList, params);
	}

	packageTypeList(params: any): any {
		return this.http.get(this.api.packageTypeList, params);
	}

	cargoTypeList(params: any): any {
		return this.http.get(this.api.cargoTypeList, params);
	}

	clientCodeList(params: any): any {
		return this.http.get(this.api.clientCodeList, params);
	}
}
